package com.ctmy.web.api.system;

import com.baomidou.mybatisplus.plugins.Page;
import com.ctmy.framework.web.BaseController;
import com.ctmy.system.domain.SysUser;
import com.ctmy.system.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 登录验证
 * 
 * @author zhoujw110
 */
@RequestMapping("/api")
@Controller
public class SysLoginController extends BaseController {

    @Autowired
    private SysUserMapper sysUserMapper;

    @RequestMapping("/login")
    @ResponseBody
    public Object login() {
        List<SysUser> list = sysUserMapper.selectAll(new Page<SysUser>(1,10));
        return list;
    }
}
